
package com.ami.kvm.jviewer.hid;

import java.util.HashMap;

public class USBKeyProcessorAZERTY extends USBCrossMapKeyProcessor {
	protected HashMap<Integer, Integer> azertyMap;
	protected static byte modifiers = 0;

	public USBKeyProcessorAZERTY(int paramInt) {
		this.azertyMap = new HashMap();

		this.azertyMap.put(Integer.valueOf(65), Integer.valueOf(81));
		this.azertyMap.put(Integer.valueOf(90), Integer.valueOf(87));
		this.azertyMap.put(Integer.valueOf(87), Integer.valueOf(90));
		this.azertyMap.put(Integer.valueOf(81), Integer.valueOf(65));
		this.azertyMap.put(Integer.valueOf(77), Integer.valueOf(59));
		this.azertyMap.put(Integer.valueOf(44), Integer.valueOf(77));
		this.azertyMap.put(Integer.valueOf(59), Integer.valueOf(44));
		this.azertyMap.put(Integer.valueOf(513), Integer.valueOf(46));
		this.azertyMap.put(Integer.valueOf(522), Integer.valueOf(45));
		this.azertyMap.put(Integer.valueOf(130), Integer.valueOf(91));
		this.azertyMap.put(Integer.valueOf(515), Integer.valueOf(93));
		this.azertyMap.put(Integer.valueOf(151), Integer.valueOf(92));
		if (paramInt == 3) {
			this.azertyMap.put(Integer.valueOf(517), Integer.valueOf(47));
		} else if (paramInt == 13) {
			this.azertyMap.put(Integer.valueOf(61), Integer.valueOf(47));
			this.azertyMap.put(Integer.valueOf(45), Integer.valueOf(61));
			this.azertyMap.put(Integer.valueOf(135), Integer.valueOf(91));
		}
		if (System.getProperty("os.name").equals("Linux")) {
			this.azertyMap.put(Integer.valueOf(150), Integer.valueOf(49));
			this.azertyMap.put(Integer.valueOf(222), Integer.valueOf(52));
			this.azertyMap.put(Integer.valueOf(519), Integer.valueOf(53));
			this.azertyMap.put(Integer.valueOf(45), Integer.valueOf(54));
			this.azertyMap.put(Integer.valueOf(523), Integer.valueOf(56));
		}
		setLocalKeyCodeMap(this.azertyMap);
		setHostLayoutIndex(paramInt);
	}
}
